<html>

<head>
  <title>浮动框架</title>
  <script>
    var lastHeight;
    function initL() {
      aaac(); lastHeight = left.document.body.scrollHeight;
      setInterval(function () {
        if (left.document.body.scrollHeight != lastHeight) {
          aaac(); lastHeight = left.document.body.scrollHeight + 0;
        }
      }, 1);
    }
    function aaac() {
      document.all('left').height = left.document.body.scrollHeight + 0;
    }
  </script>
</head>

<body bgcolor="#E1FFE1">
  <center>
    <iframe src="html_img.html" name="aa" width="600" height="400" marginwidth="30" marginheight="20" align="middle"
      allowtransparency="true" onload="initL()"> 这是一个浮动窗口</iframe>
    <p><a href="html_a_a.html" target="aa">超链接</a></p>
    <p><a href="html_hn.html" target="aa">标题</a></p>
    <p><a href="html_marquee.html" target="aa">滚动</a></p>
  </center>
</body>

</html>